package com.bbcare.followup.plat.store.ibatis;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.bbcare.followup.plat.entity.Patient;

public interface IPatientqueryCardDAO {
	// 查询通过微信id查询患者id 查询表 pt_user_info
	public List<Map<String, Object>> selectpatientid(Map<String, Object> paramMap) throws Exception;
	
	// 查询通过微信id查询患者id 查询表 pt_user_info
	public List<Map<String, Object>> selectpatientidOrder(Map<String, Object> paramMap) throws Exception;
	
	// 查询通过微信id查询患者id 查询表 pt_user_info
	public List<Map<String, Object>> selectpatientidQueue(Map<String, Object> paramMap) throws Exception;
	
	// 查询通过微信id查询患者id 查询表 pt_user_info
	public List<Patient> selectpatientidByPhoneNo(Map<String, Object> paramMap) throws Exception;
	
	// 通过备用号码查询用户信息 查询表 pt_user_info
	public List<Patient> selectPtExtendUserInfo(Map<String, Object> paramMap) throws Exception;
	
	// 通过备用号码查询用户信息 查询表 pt_user_info
	public List<Patient> selectUserInfoByNameAndBir(Map<String, Object> paramMap) throws Exception;
		
    //通过患者id查询绑定卡信息  查询表pt_queuescheme_info
    public List<Map<String, Object>> selectcardId(Map<String, Object> paramMap) throws Exception;
    
  //通过队列id，患者id，卡号 ，病人识别码 更新 pt_queuescheme_info
    public void updateCardThings(Map<String, Object> paramMap) throws Exception;
    
  // 更新 预约流水pt_queuescheme_info
    public void updateOrderByuserId(HashMap<String, Object> paramMap) throws Exception;
    
    //通过队列id，患者id，卡号 ，病人识别码 更新 pt_queuescheme_info 将当前数据置为失效
    public void updatestatusBypathash(Map<String, Object> paramMap) throws Exception;
    //入历史
	public void PatientQueueSchemeHis(HashMap<String, Object> servParamMap)throws Exception;

}
